/**navbar start**/
*{
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

#mainNav{
    top: 0;
    border-width: 0 0 1px;
    position: fixed;
    right: 0;
    left: 0;
    z-index: 1030;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); 
    background-color: rgba(52,152,219,1);
}

#mainNav a{
    text-decoration: none;
}

#mainNav .container-fluid {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}


@media (min-width: 768px){
    
    #mainNav .navbar {
    position: relative;
    min-height: 50px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    }
    
    #mainNav .navbar-header{
        float: left;
    }



#mainNav .navbar-collapse{
    float: right;
    height: 50px;
}

.navbar-default .navbar-header .navbar-brand {    
    font-weight: 700;
    text-transform: uppercase;
}

  .navbar-default .navbar-header .navbar-brand {
    color: rgba(255, 255, 255, 0.7);
  }

  .container-fluid>.navbar-collapse, .container-fluid>.navbar-header, .container>.navbar-collapse, .container>.navbar-header {
    margin-right: 0;
    margin-left: 0;
    
  }
  
  .navbar-collapse.collapse {
    display: block!important;
    min-height: 50px;
    height: auto!important;
    overflow: visible!important;
    visibility: visible!important;
}
   
   .navbar-default {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.3);
  }
  
  .navbar-toggle {
    display: none;
  }
  
  #navbar-collapse-1 ul{
    display: block;
    height: 50px;
}

 #navbar-collapse-1 ul li{
    float: left;
    display: block;
    margin-right: 15px;
    height: 50px;
    line-height: 50px;
    
 }
 
 

.collapse.in {
    border-top: 0px;    
}

}


.navbar-brand {
    float: left;
    height: 50px;
    padding: 15px 15px;
    font-size: 18px;
    line-height: 20px;
}

.navbar {
    border: 1px solid transparent;
}

.navbar-toggle {
    position: relative;
    float: right;
    padding: 9px 10px;
    margin-top: 8px;
    margin-right: 15px;
    margin-bottom: 8px;
    background-color: transparent;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
}

.nav>li>a {
    position: relative;
    display: block;  
}

.collapse {
    display: none;
    visibility: hidden;
}

.collapse.in {
    display: block;
    visibility: visible;
    border-top: 1px solid darkgray;    
}

.collapse.in li{
    padding: 10px;
}



.navbar-default .navbar-toggle {
    border-color: #ddd;
}
/** navbar-default 图标 start ***/
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: #888;
}

.navbar-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
}

.navbar-toggle .icon-bar+.icon-bar {
    margin-top: 4px;
}

/** navbar-default 图标 end ***/
    
.navbar-nav {
    margin: 7.5px -15px;
}

.navbar-default .navbar-collapse{
    border-color: #e7e7e7;
}

.container-fluid>.navbar-collapse, .container-fluid>.navbar-header{
    margin-right: -15px;
    margin-left: -15px;
}

.navbar-collapse {
    padding-right: 15px;
    padding-left: 15px;    
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
    -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}

#navbar-collapse-1 ul{ 
    margin:0;
    padding:0;    
}
#navbar-collapse-1 ul li{
    display: block;
 }
 
.navbar-header:after, .navbar-header:before{
    display: table;
    content: " ";
}

.navbar-header:after{
    clear: both;
}


/**navbar end**/
    
.navbar-default {
    background-color: white;
    opacity:0.9;
    border-color: rgba($theme-light-blue-1, .5);
    @include sans-serif-font;
    @include transition-all;
    .navbar-header .navbar-brand {
        color: $theme-yellow;
        @include sans-serif-font;
        font-weight: 700;
        text-transform: uppercase;
        &:hover,
        &:focus {
            color: darken($theme-yellow, 10%);
        }
    }
    .nav {
        > li {
            > a,
            > a:focus {
                text-transform: uppercase;
                font-weight: 700;
                font-size: 13px;
                color: $theme-lvory;
                &:hover {
                    color: $theme-yellow;
                }
            }
            &.active {
                > a,
                > a:focus {
                    color: $theme-primary !important;
                    background-color: transparent;
                    &:hover {
                        background-color: transparent;
                    }
                }
            }
        }
    }
    @media (min-width: 768px) {
        background-color: transparent;
        border-color: rgba(white, .3);
        .navbar-header .navbar-brand {
            color: rgba(white, .7);
            &:hover,
            &:focus {
                color: white;
            }
        }
        .nav > li > a,
        .nav > li > a:focus {
            color: rgba(white, .7);
            &:hover {
                color: white;
            }
        }
        &.affix {
            background-color: white;
            border-color: rgba($theme-dark, .5);
            .navbar-header .navbar-brand {               
                font-size: 14px;
                &:hover,
                &:focus {
                    color: darken($theme-yellow, 10%);
                }
            }
            .nav > li > a,
            .nav > li > a:focus {
                color: $theme-lvory;
                &:hover {
                    color: $theme-yellow;
                }
            }
        }
    }
}

//content
//@media only screen and (min-width: 1200px){
//  .container, .footer {
//  max-width: 38rem;
//}
//}

@media only screen and (min-width: 768px){
    .container, .footer {
    max-width: 56rem;
}
}

#header-wrapper{
    width: 100%;
//  height: 100%;
}

// Homepage Header

header {
    position: absolute;
    width: 100%;
    min-height: auto;
    @include background-cover;
    background-position: center 50px;
    background-image: url('http://hsuyungzhang.oschina.io/gallery/header-photo6.jpg');
    background-repeat: repeat-x;  
    text-align: center;
    color: white;
    .header-content {
        position: relative;
        text-align: center;
        padding: 100px 15px 100px;
        width: 100%;
        .header-content-inner {
            h1 {
                font-weight: 700;
                text-transform: uppercase;
                margin-top: 0;
                margin-bottom: 0;
            }
            hr {
                margin: 30px auto;
            }
            p {
                font-weight: 300;
                color: rgba(white, .7);
                font-size: 16px;
                margin-bottom: 50px;
            }
        }
    }
    @media (min-width: 768px) {
        min-height: 100%;
        .header-content {
            position: absolute;
            top: 50%;
            -webkit-transform: translateY(-50%);
            -ms-transform: translateY(-50%);
            transform: translateY(-50%);
            padding: 0 50px;
            .header-content-inner {
                max-width: 1000px;
                margin-left: auto;
                margin-right: auto;
                p {
                    font-size: 18px;
                    max-width: 80%;
                    margin-left: auto;
                    margin-right: auto;
                }
            }
        }
    }
}

#header-banner{
    height: 100px;
    width: 80%;
    margin: auto;
    margin-top: 70px;
//  background-image: url('http://hsuyungzhang.oschina.io/gallery/go_home.png');
//  background-position: right;
//  background-repeat: no-repeat;
//  background-size:contain;
    text-align: center;
    h1{
        @include ostrich-sans-rounded;
    }    

}

#content-wrapper{
    width: 100%;
    @media (min-width: 768px) {
        padding: 15px 50px 15px 50px;
    }
    
}

#content{    
    padding: 5px;  
    width: 100%;
    height:100%;
}

#content .container{
    position: relative;
    background-color: rgba(255,250,250,0.8);
//  opacity: 0.99;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
}

.post-list {
    margin: 0 0 ;
    font-size: 1.2em;
}

.post-list-date {
    float: right;
    margin: 0 0 0 20px;
}


#footer-wrapper{
    color: #999;
    height: 1px;
    font-size: 1em;
    background: linear-gradient(#f9f9f9,#fff 30px);
    background: -webkit-gradient(linear,left top,right top,from(rgba(255,255,255,0)),color-stop(#ccc),to(rgba(255,255,255,0)));
    background: -webkit-linear-gradient(left,rgba(255,255,255,0),#ccc,rgba(255,255,255,0));
    background: linear-gradient(to right,rgba(255,255,255,0),#ccc,rgba(255,255,255,0));
    padding-top: 1px;
}

#footer-wrapper footer{
    padding: 20px 0px;
    background: linear-gradient(#f9f9f9,#fff 30px);
    opacity: 0.9;
}

@media (min-width: 30.1em){
.text-truncate {
    max-width: 100%;
    overflow: hidden!important;
    text-overflow: ellipsis!important;
    white-space: nowrap!important;
    word-wrap: normal!important;
}
}
.post-list-desc {
    padding-right: 110px;
    clear: both;
}

.post-list-desc, .project-list-desc {
    color: #888;
    font-size: 80%;
}


// Sections

.section-heading {
    margin-top: 0;
}

.service-box {
    max-width: 400px;
    margin: 50px auto 0;
    @media (min-width: 992px) {
        margin: 20px auto 0;
    }
    p {
        margin-bottom: 0;
    }
}

.portfolio-box {
    position: relative;
    display: block;
    max-width: 650px;
    margin: 0 auto;
    .portfolio-box-caption {
        color: white;
        opacity: 0;
        display: block;
        background: rgba( $theme-primary, .9 );
        position: absolute;
        bottom: 0;
        text-align: center;
        width: 100%;
        height: 100%;
        @include transition-all;
        .portfolio-box-caption-content {
            width: 100%;
            text-align: center;
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            .project-category,
            .project-name {
                @include sans-serif-font;
                padding: 0 15px;
            }
            .project-category {
                text-transform: uppercase;
                font-weight: 600;
                font-size: 14px;
            }
            .project-name {
                font-size: 18px;
            }
        }
    }
    &:hover {
        .portfolio-box-caption {
            opacity: 1;
        }
    }
    @media (min-width: 768px) {
        .portfolio-box-caption {
            .portfolio-box-caption-content {
                .project-category {
                    font-size: 16px;
                }
                .project-name {
                    font-size: 22px;
                }
            }
        }
    }
}


 
 
 
 
